package com.sujiewon.salesadmin.common.util;

import java.math.BigInteger;
import java.util.HashMap;

public class CommonRequestMap<T1, T2> extends HashMap<T1, T2> {
	private static final long serialVersionUID = -2370150457894165134L;
	
	public String getString(Object key){
		if(get(key) != null){
			return get(key).toString();
		}
		return null;
	}
	
	public int getInteger(Object key){
		return Integer.parseInt(getString(key));
	}
	
	public long getLong(Object key){
		return Long.parseLong(getString(key));
	}
	
	public BigInteger getBigInteger(Object key){
		return new BigInteger(getString(key));
	}
	
	public double getDouble(Object key){
		return Double.parseDouble(getString(key));
	}
	
}
